package cn.edu.ahpu.pojo;

public class Json {
	private int state=1;
	private String message="ok";
	private Object data;
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public Json(Object data) {
		super();
		this.data = data;
	}
	public void fail(String message) {
		this.state = 0;
		this.message = message;
	}
}
